package com.example.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * Copyright © 2016年 author. All rights reserved.
 *
 * @Author 临江仙 hzqiuxm@163.com
 * @Date 2017/10/18 0018 10:45
 */
@Controller
public class HelloController {

    @GetMapping("/hello")
    String hello() {

        return "login";
    }

    @PostMapping("/sys/login")
    public String login(){
        return "/ok";
    }

    @PostMapping("/sys/logout")
    public String logout(){
        return "/out";
    }


}
